import request from '@/utils/request'

// 查询用户附件列表
export function listSysUserEnclosure(query) {
  return request({
    url: '/system/sysUserEnclosure/list',
    method: 'get',
    params: query
  })
}

// 查询用户附件详细
export function getSysUserEnclosure(id) {
  return request({
    url: '/system/sysUserEnclosure/' + id,
    method: 'get'
  })
}

// 新增用户附件
export function addSysUserEnclosure(data) {
  return request({
    url: '/system/sysUserEnclosure',
    method: 'post',
    data: data
  })
}

// 修改用户附件
export function updateSysUserEnclosure(data) {
  return request({
    url: '/system/sysUserEnclosure',
    method: 'put',
    data: data
  })
}

// 删除用户附件
export function delSysUserEnclosure(id) {
  return request({
    url: '/system/sysUserEnclosure/' + id,
    method: 'delete'
  })
}

// 新增用户附件
export function userEnclosureUpload() {
	return process.env.VUE_APP_BASE_API + '/system/sysUserEnclosure/upload'
}